package com.wintop.youyuan.services;

import java.util.List;

import com.wintop.youyuan.model.User;

public interface UserServices {
	public User login(String userid, String password);

	public User register(User user, int age);

	public User getUser(int id);

	public User getUser(String userid);

	public List<User> getUsers();// 获取所以用户

	public boolean isHaveUser(String userid);

	public boolean updateUser(User user);

	public boolean updatePwd(User user, String newPwd);

	public boolean deleteUser(int id);
}
